package com.tqw.favorites.service.impl;

import com.tqw.favorites.dao.FavoritesMapper;
import com.tqw.favorites.pojo.Favorites;
import com.tqw.favorites.service.FavoritesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Van
 */
@Service
public class FavoritesServiceImpl implements FavoritesService {
    @Autowired
    private FavoritesMapper favoritesMapper;
    @Override
    public List<Favorites> selectFavorites(Integer id) {
         return favoritesMapper.selectFavoritesById(id);
    }
}
